package sedgewick;

public class Question42 {

    public static void main(String[] args) {
        MaxPQ<String> pq = new MaxPQ<String>(new String[] {"Y", "R", "N", "E", "M", "A", "D", "B", "C", "L"});
        for (String x : pq) {
            System.out.print(x + " ");
        }
        System.out.println();
        System.out.println(pq);
        System.out.println();
        pq.delMax();
        pq.delMax();
        pq.delMax();
        for (String x : pq) {
            System.out.print(x + " ");
        }
        System.out.println();
        System.out.println(pq);
    }

}
